package ButtonType;

public class LoginForm {
    private AbstractButton button;
    private final Utils utils = new Utils();

    public void display() {
        try {
            String name = utils.getName();
            if (name.equals("CricleButton")) {
                new CircleButton().dispaly("CricleButton");
            }
            if (name.equals("RectangleButton")) {
                new RectangleButton().dispaly("RectangleButton");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
